var upload = layui.upload;
upload.render({
	elem : '#upload',
	url : '/excel/upload',
	accept:'file',
	exts:'xls',
	before : function(obj) { // obj参数包含的信息，跟 choose回调完全一致，可参见上文。
		var index = layer.load(1, {
			shade : [ 0.3, '#fff' ]
		}); // 上传loading
	},
	done : function(res, index, upload) {
		layer.closeAll('loading'); // 关闭loading
		layer.msg('上传成功！');
//		setTimeout(function (){
//			location.href = "/data";
//		},2000); 
	},
	error : function(index, upload) {
		layer.closeAll('loading'); // 关闭loading
		layer.msg('上传失败！');
	}
});